package com.qf.staff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.staff.pojo.Dept;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;


public interface DeptMapper extends BaseMapper<Dept> {
    @Update("update yu_dept set status = #{status}  where dept_id = #{deptId} ")
    int updateByStatus(Dept dept);

    List<Dept> selectListByDept();

    List<Dept> ListByDept();

    int updateByAllStatus(@Param("ids") List<Integer> ids, @Param("status") int status);

    int count(@Param("deptName") String deptName);
}